import request from '@/config/axios'
/**
 * 根据分类查询全局配置
 */
export const queryByClass = (settingClass) => {
  return request.post({
    url: '/setting/global-setting/query-by-class?settingClass=' + settingClass
  })
}

/**
 * 更新全局配置
 */
export const update = (data) => {
  return request.post({ url: '/setting/global-setting/update', data })
}

/**
 * 获取单个公海规则
 */
export const getRule = (id) => {
  return request.get({ url: '/setting/global-setting/get-rule?id=' + id })
}
